module.exports = {
  publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
  configureWebpack:{
    resolve:{
      // 配置别名
      alias:{
        'assets':'@/assets',
        'common':'@/common',
        'components':'@/components',
        'network':'@/network',
        'views':'@/views'
      }
    }
  },
  devServer: {
    proxy: {
      "/ip": {
        target: "https://api-hmugo-web.itheima.net",
        changeOrigin: true,
        pathRewrite: {
          "^/ip": ""   
        }
      }
    }
  }
}